//
//  ViewController.m
//  24_加密
//
//  Created by 徐康 on 16/8/16.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ViewController.h"
#import "NSString+XKMD5.h"
#import "NSString+JYJSHA.h"
#import "NSString+JYJQCBase64.h"
#import "NSString+JYJDES.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSString *afterMD5 = @"Hello";
    NSString *finalMD5Lower = [afterMD5 stringWith32BitMD5Lower];
    NSLog(@"32 小写 :%@", finalMD5Lower);
    NSString *finalMD5Upper = [afterMD5 stringWith32BitMD5Upper];
    NSLog(@"32 大写 :%@", finalMD5Upper);
    
    NSString *finalMD5V2Lower = [afterMD5 stringWith16BitMD5Lower];
    NSLog(@"16 小写 :%@", finalMD5V2Lower);
    NSString *finalMD5V2Upper = [afterMD5 stringWith16BitMD5Upper];
    NSLog(@"16 大写 :%@", finalMD5V2Upper);
    //SHA_1 单向散列函数
    NSString *qw = [afterMD5 stringWithSHA_1];
    NSLog(@"%@",qw);
    // base64
    NSString *afterBase64 = @"Hello";
    NSString *base64 = [afterBase64 stingWithBase64];
    NSLog(@"base:%@",base64);
    NSString *finalString = [base64 base64WithString];
    NSLog(@"%@",finalString);
    // 对称密码
    // 三种  DES  AES   三重DES
    
     NSString *srt = [afterMD5 stringWithDES];
    NSLog(@"des:%@",srt);
    NSString *strOrign = [srt desWithString];
    NSLog(@"%@",strOrign);
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
